<script type="text/javascript" src="/js/patch.js"></script>           
<script>
  $(document).ready(function() {
    $("#selectAll").click(function(){
      $("input[name='selectItems']").attr("checked","checked");
    });
    $("#revSelect").click(function(){
      var items = $("input[name='selectItems']");
      $(items).each(function() {
        $(this).attr("checked",!$(this).attr("checked"));
      });
    });
    $("#deletebtn").click(function() {
      $("#fom").attr("action","/project/deleteProject.do");
      $("#fom").submit();
    });
  });
</script>
<style type="text/css">
#main table {
	border-top:1px #666666 solid;
	border-right:1px #666666 solid;
	background:url(../images/line_bg_list.gif) left top repeat;
}
#main table tr:hover td { background: #FFFB82; cursor:pointer; color:#000000;}/*隔行换色鼠标经过效果*/
#main td {
	border-left:1px #666666 solid;
	border-bottom:1px #666666 solid;
	height:29px;
	overflow:hidden;
}
</style>
<form name="fom" id="fom" method="post" action="">
<table width="90%" style="margin-top:20px;" border="0" align="center" cellpadding="10" cellspacing="0">
	<tr>
		<td>
		<div id="main">
			<h3>项目信息列表</h3>
			<fieldset>
				<div style="width:100%; height:30px; line-height:30px; vertical-align:middle;">
				选择：<a href="#nogo" id="selectAll" name="selectAll" class="right-font08">全选</a>-<a href="#nogo" id="revSelect" name="revSelect" class="right-font08">反选</a>
				<input name="deletebtn" id="deletebtn" type="button" class="right-button08" value="删除所选项目" />
				<input name="Submit2" type="button" class="right-button08" value="添加项目" onclick="javascript:location.href='/project/addNewProject_StepOne.jsp'" />
				<font color="#FF0000">*点击评分人员可以查看当前评分状况，并且在项目结束后可以对评分情况进行修改</font> 
				</div>
				<table width="100%" border="0" cellpadding="0" cellspacing="0">
				  <tr style="color:#FFFFFF">
					<td width="6%" align="center" valign="middle" bgcolor="#333333"><strong>选择</strong></td>
				    <td width="20%" align="center" valign="middle" bgcolor="#333333"><strong>项目名称</strong></td>
				    <td width="12%" align="center" valign="middle" bgcolor="#333333"><strong>评分人员</strong></td>
				    <td width="12%" align="center" valign="middle" bgcolor="#333333"><strong>开始时间</strong></td>
				    <td width="12%" align="center" valign="middle" bgcolor="#333333"><strong>完成时间</strong></td>
				    <td width="12%" align="center" valign="middle" bgcolor="#333333"><strong>添加时间</strong></td>
				    <td width="6%" align="center" valign="middle" bgcolor="#333333"><strong>状态</strong></td>
				    <td width="20%" align="center" valign="middle" bgcolor="#333333"><strong>操作</strong></td>
				  </tr>
				  #foreach($project in $projectList)
				  <tr>
                    <td align="center" valign="middle"><input type="checkbox" name="selectItems" value="$!project.id"/></td>
				    <td align="center" valign="middle"><a href="/project/showProjectInfo.jsp?id=$!project.id">$!project.name</a></td>
				    <td align="center" valign="middle">
				    #foreach($user in $userMap.get($!project.id))
	                            <a href="/project/viewProjectByPerson.jsp?projectId=$!project.id&uid=$!user.id" title="点击查看评分详情">$user.realName</a>&nbsp;
	                            #end
				    </td>
				    <td align="center" valign="middle">
				    #if($!project.startTime)
						$DateUtil.formatDate($!project.startTime,"yyyy-MM-dd HH:mm:ss")
					#end
				    </td>
			        <td align="center" valign="middle">
			        #if($!project.endTime)
						$DateUtil.formatDate($!project.endTime,"yyyy-MM-dd HH:mm:ss")
					#else
						&nbsp;
					#end
			        </td>
			        <td align="center" valign="middle">$DateUtil.formatDate($!project.createDate,"yyyy-MM-dd HH:mm:ss")</td>
			        <td align="center" valign="middle">
			        #if($!project.status==0)<font color="#0000FF">建立中</font>#elseif($!project.status==1)#if($DateUtil.distance($!now,$!project.startTime)=="true")<font color="green">评分中</font>#else评分日期未到#end#else<font color="green">已结束</font>#end
			        </td>
			        <td align="center" valign="middle">
			        #if($!project.status==0)<a href="/project/editProjectBasicInfo.jsp?id=$!project.id">编辑</a>#else编辑#end|
							<a href="/project/newProjectView.jsp?projectId=$!project.id&treeId=0">查看详情</a>
					#if($!project.status==1)| <a href="/project/completeProjectScore.do?id=$!project.id">结束评分</a>#end
			        </td>
				  </tr>
				 #end
				  <tr>
				    <td height="30" colspan="8" valign="middle" align="center">　
				    #parse("/view/pub/pager.html")
				    </td>
			      </tr>
				</table>
			</fieldset>
		</div>
		</td>
	</tr>
</table>
</form>